package training.io;

import java.io.File;
import java.io.FileOutputStream;

public class TulisFileDemo {
	public static void main(String[] args) throws Exception {
		File outfile = new File("tulisan.txt");
		FileOutputStream outstream = new FileOutputStream(outfile);
		
		String tulisan = "halo";
		outstream.write(tulisan.getBytes());
		outstream.close();
	}
}
